package cn.tedu.tmall.admin.mall.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class MallGoodsAddParam implements Serializable {
    @NotNull(message = "类别id不能为空！")
    @ApiModelProperty(value = "类别id",required = true,dataType = "long")
    Long categoryId;

    @NotBlank(message = "商品名称不能为空！")
    @ApiModelProperty(value = "商品名称",required = true,dataType = "string")
    String name;

    @NotBlank(message = "商品标题不能为空！")
    @ApiModelProperty(value = "商品标题",required = true,dataType = "string")
    String title;
}
